package com.example.qiao.mvp.contract;

import com.example.mylibrary.mvp.model.IModel;
import com.example.mylibrary.mvp.view.IView;
import com.example.qiao.bean.GUAN;
import com.example.qiao.bean.Tong;
import com.example.qiao.bean.Zhong;

import org.json.JSONException;

import java.util.List;

import io.reactivex.Observer;

public interface PostContract{
    interface View extends IView{
        void initGuan(List<GUAN> list);
        void initZHong(List<Zhong> list);
        void initTong(List<Tong> list);
    }
    interface Model extends IModel{
        void requestGuan(Observer<List<GUAN>> observer) throws JSONException;
        void requestZhong(Observer<List<Zhong>> observer);
        void requestTong(Observer<List<Tong>> observer);
    }
}
